<%@page import="com.etc.myblog.biz.UserBiz"%>
<%@page import="com.etc.myblog.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>显示数据</title>

  </head>
  
  <body>
  <jsp:include page="../inc/head_nav.jsp" />
  	<p>登录成功！以下数据从数据库调取！</p>
  	<%
  		//User user = new UserBiz().findUserByuserName("kiseki");
  		//User user = (User)request.getAttribute("user");
  		User user = (User)session.getAttribute("user");
  	%>
  	<span>用户ID: <%=user.getUserId() %></span>
  	<span>用户名: <%=user.getUserName() %></span>
  	<span>密码: <%=user.getUserPwd() %></span>
  	<span>邮箱: <%=user.getUserEmail() %></span>
  	<img alt="头像" src="${pageContext.request.contextPath}/<%=user.getUserImgUrl() %>" />

  	<a href="${pageContext.request.contextPath}/user/userPerInfoModify.jsp">修改个人信息</a>
  	<a href="${pageContext.request.contextPath}/user/userPwdModify.jsp">修改密码</a>
  </body>
</html>
